package me.zhengjie.modules.pay.domain.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.modules.pay.domain.dto.ProductDTO;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class BuyProductReq {
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "收件人姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "省市区")
    private String provinceCityRegion;

    @ApiModelProperty(value = "地址详情")
    private String address;

    @ApiModelProperty(value = "是否是购物车中创建订单：0：普通订单 1：购物车订单")
    private Integer type = 0;

    @ApiModelProperty(value = "购物车ids")
    private List<Long> cartIds;

    @ApiModelProperty(value = "商品详情")
    private List<ProductDTO> productList;

}
